﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace WeiXinSDK.Common
{
	public static class ByteExt
	{
		private static MD5 md5 = MD5.Create();

		public static byte[] MD5Default(this byte[] bytes)
		{
			return md5.ComputeHash(bytes);
		}

		public static string ToUTF8String(this byte[] bytes)
		{
			return Encoding.UTF8.GetString(bytes);
		}
	}
}
